William23668 8 Posted April 5, 2023 Hi I changed the Java path to point to latest java but I get now this error: Quote [PAClient Error] Error: E7688 Unable to execute '"C:\Program Files\Java\jdk-17.0.1\bin\java.exe" why is that ? Share this post Link to post
programmerdelphi2k 237 Posted April 6, 2023 Verify if exists more than 1 java in your mswin Share this post Link to post
Dave Nottage 564 Posted April 6, 2023 1 hour ago, William23668 said: why is that ? It may depend on which version of Delphi you are using. Later versions of Delphi (e.g. 11.3) require the OpenJDK. It's hard to tell without more information, including the rest of the error message Share this post Link to post
William23668 8 Posted April 6, 2023 (edited) [PAClient Error] Error: E7688 Unable to execute '"C:\Program Files\Java\jdk-17.0.1\bin\java.exe" -cp "c:\program files (x86)\embarcadero\studio\22.0\bin\Android\r8-3.3.28.jar" com.android.tools.r8.D8 --release --min-api 23 --output "C:\Delphi\app1\Android64\Debug\app1.classes" @"C:\Delphi Projects\app1\Android64\Debug\dex_list.txt"' (Error 1) I installed now MS openjdk but same error JAVA_HOME = C:\Program Files\Microsoft\jdk-17.0.6.10-hotspot\ Edited April 6, 2023 by William23668 Share this post Link to post
Dave Nottage 564 Posted April 6, 2023 6 minutes ago, William23668 said: c:\program files (x86)\embarcadero\studio\22.0 As per my earlier reply, later versions of Delphi require the OpenJDK. You can install it from the Delphi IDE by using Tools | Manage Platforms, select the Additional Options tab, select Eclipse Temurin OpenJDK 11 (Hotspot) JVM and click Apply. Once installed, you'd need to modify your Android SDK settings to use the installed JDK: Share this post Link to post
William23668 8 Posted April 6, 2023 Now I am getting this [PAClient Error] Error: E7688 Unable to execute '"C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot\bin\java.exe" will try restart Share this post Link to post
Dave Nottage 564 Posted April 6, 2023 2 minutes ago, William23668 said: Now I am getting this [PAClient Error] Error: E7688 Unable to execute '"C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot\bin\java.exe" Once again, not enough information Share this post Link to post
William23668 8 Posted April 6, 2023 (edited) [PAClient Error] Error: E7688 Unable to execute '"C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot\bin\java.exe" -cp "c:\program files (x86)\embarcadero\studio\22.0\bin\Android\r8-3.3.28.jar" com.android.tools.r8.D8 --release --min-api 23 --output "C:\Delphi\app1\Android64\Debug\app1.classes" @"C:\Delphi \app1\Android64\Debug\dex_list.txt"' (Error 1) Edited April 6, 2023 by William23668 Share this post Link to post
Dave Nottage 564 Posted April 6, 2023 Is this a project created in an earlier version of Delphi? If so, you may need to follow the step described here. 2 Share this post Link to post
William23668 8 Posted April 6, 2023 (edited) yes this was the problem. but I now get this error Quote Unable to create process: Serving... Performing Incremental Install Unknown command: install-incremental Performing Streamed Install adb: failed to install C:\Delphi\app1\Android64\Debug\app1\bin\app1_Delphi.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.embarcadero.app1_Delphi signatures do not match previously installed version; ignoring!] Solved I uninstalled the app from the phone and now it open Thanks Edited April 6, 2023 by William23668 1 Share this post Link to post
VincentG 1 Posted October 26, 2023 On 4/6/2023 at 3:21 AM, Dave Nottage said: Is this a project created in an earlier version of Delphi? If so, you may need to follow the step described here. Hello If I may, I've got exactly the same problem. Project created under 10.4, trying to build it in 11.3. I followed the steps but the problem remains. keytool and jarsigned are pointing to the Eclipse Adoptium\jdk-11.0.15.10-hotspot\bin folder though... kind of have no idea left... Share this post Link to post
Dave Nottage 564 Posted October 26, 2023 5 hours ago, VincentG said: kind of have no idea left... Did you check programmer2k's suggestion? Having other JDKs on the system where the path appears before that of the Adoptium JDK can cause trouble. 1 Share this post Link to post
VincentG 1 Posted October 27, 2023 10 hours ago, Dave Nottage said: Did you check programmer2k's suggestion? Having other JDKs on the system where the path appears before that of the Adoptium JDK can cause trouble. Hello, thanks for your concern. Yes I forgot to talk about that, I checked that too. Maybe I didn't checked it well though ? Share this post Link to post
VincentG 1 Posted October 27, 2023 ok well, it's ok now. What I did ; went back to 10.4, did the Revert System Files to Default thing again and compiled. Then retried with 11.3, and it works. There must have something very logical that I didn't get, but I'll see that later. 1 Share this post Link to post